package com.ostrich.cloud.ostrichGoodsService.infra.model;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.ostrich.cloud.ostrichGoodsService.common.status.OstrichGoodsStatus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 物品表
 * </p>
 *
 * @author Lucas
 * @since 2022-10-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("goods")
@ApiModel(value="Goods对象", description="物品表")
public class Goods implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "goods_id", type = IdType.AUTO)
    private Integer goodsId;

    @ApiModelProperty(value = "类别id")
    private Integer typeId;

    @ApiModelProperty(value = "物品名字")
    private String goodsName;

    @ApiModelProperty(value = "物品图片")
    private String goodsImg;

    @ApiModelProperty(value = "物品价格")
    private BigDecimal goodsPrice;

    @ApiModelProperty(value = "产地具体到省")
    private String goodsLocation;

    @ApiModelProperty(value = "物品库存")
    private Integer goodsStock;

    @ApiModelProperty(value = "计价单位")
    private String unitName;

    @ApiModelProperty(value = "销量")
    private Integer sales;

    @ApiModelProperty(value = "ON上架|DOWN下架|SLOD_OUT告罄")
    private OstrichGoodsStatus goodsStatus;

    private Integer businessmanId;


}
